package com.yuw.package6;

public abstract class Student {
    // 属性
    private String stuName;
    private String stuNum;
    private String stuSex;
    private String stuDeptName;

    private double endScore;
    private double middleScore;
    // 行为
    /**
     * 计算学生总成绩
     *
     * @return 总成绩
     */
    public abstract double calculateTotalScore();

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getStuNum() {
        return stuNum;
    }

    public void setStuNum(String stuNum) {
        this.stuNum = stuNum;
    }

    public String getStuSex() {
        return stuSex;
    }

    public void setStuSex(String stuSex) {
        this.stuSex = stuSex;
    }

    public String getStuDeptName() {
        return stuDeptName;
    }

    public void setStuDeptName(String stuDeptName) {
        this.stuDeptName = stuDeptName;
    }

    public double getEndScore() {
        return endScore;
    }

    public void setEndScore(double endScore) {
        this.endScore = endScore;
    }

    public double getMiddleScore() {
        return middleScore;
    }

    public void setMiddleScore(double middleScore) {
        this.middleScore = middleScore;
    }
}
